local unitName = "Luminarian_foil"

local unitDef = {
name = "Luminarian Foil Mech",
Description = "Luminarian Jumping Raider.",
objectName = "PK_Luminarian_foil.s3o",
script = "PK_Luminarian_foil_script.lua",
buildPic = "Luminarian_foil.png",
--cost
buildCostMetal = 225,
buildCostEnergy = 2700,
buildTime = 2300,
--Health
maxDamage = 1370,
idleAutoHeal = 0,

--Movement
Acceleration = 0.2,
BrakeRate = 0.3,
FootprintX = 2,
FootprintZ = 2,
MaxSlope = 60,
MaxVelocity = 2.4,
MaxWaterDepth = 20,
MovementClass = "Default2x2",
TurnRate = 600,

sightDistance = 500,

Builder = false,
CanAttack = true,
CanGuard = true,
CanMove = true,
CanPatrol = true,
CanStop = true,
LeaveTracks = false, 

    ExplodeAs = "MEDIUM_UNIT_EXPLOSION",

Category = [[LAND]],

weapons = {
        [1] = {
            def = "orangeblob",
	     onlyTargetCategory = [[LAND]],
        },
    },
}

local weaponDefs = {
    orangeblob = {
name="Rocket Pods",
weaponType=[[MissileLauncher]],

Accuracy=100,

--Physic/flight path
range=800,
reloadtime=5,
weaponVelocity=2400,
startVelocity=800,
burst=6,
burstrate=0.1,
weaponAcceleration=200,
flightTime=10,
BurnBlow=1,
FixedLauncher=true,
impulsefactor=0.001,
tolerance=8000,
dance=1,--200
wobble=1000,
tracks=false,
Turnrate=2700,
collideFriendly=true,
TrajectoryHeight = 0.4,
size=6,
InterceptedByShieldType=3,

----APPEARANCE
model="IAE_Rocket.s3o",
smokeTrail=true,


----TARGETING
turret=true,
CylinderTargetting=true,
avoidFeature=false,
avoidFriendly=true,


--commandfire=true,

----DAMAGE
damage={
default=70,
},
areaOfEffect=60,
craterMult=0,

--?FIXME***
lineOfSight=true,


--sound
        soundhit = "rapid_rocket_hit",
soundStart="rapidrocket3",
},

}


unitDef.weaponDefs = weaponDefs
return lowerkeys({ [unitName]  =  unitDef })